public class MyException extends Exception{
    public MyException(){
    }
    //创建一个有参的构造函数
    public MyException(String exceptionMessage) { super(exceptionMessage);}
}


//继承
class doubleNumException extends RuntimeException{
    public doubleNumException(String msg){
        super(msg);
    }
}